-- GENERATED SPELL FOR [Dreadbone Sentinel] --


function spell0_16305(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16305', 8293, 1)
end

function spell1_16305(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16305', 30261, 1)
end

function Sorts_16305(pUnit, Event)
local choix_sorts_16305 = math.random(0, 1)
if choix_sorts_16305 == 0 then
pUnit:RegisterEvent('spell0_16305', 1, 1)
end
if choix_sorts_16305 == 1 then
pUnit:RegisterEvent('spell1_16305', 1, 1)
end
end

function mob16305_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16305', math.random(1500, 3000), 1)
end

function mob16305_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16305_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16305_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16305, 1, 'mob16305_Action')
RegisterUnitEvent(16305, 2, 'mob16305_Leave')
RegisterUnitEvent(16305, 3, 'mob16305_Kill')
RegisterUnitEvent(16305, 4, 'mob16305_Die')
